-- GENERATED SPELL FOR [Frozen Sphere] --


function spell0_28066(pUnit, Event) --@Ice Shard,n/a--
pUnit:FullCastSpellOnTarget(50578,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28066', 1000, 1)
end

function Sorts_28066(pUnit, Event)
local choix_sorts_28066 = math.random(0, 0)
if choix_sorts_28066 == 0 then
pUnit:RegisterEvent('spell0_28066', 1, 1)
end
end

function mob28066_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28066', math.random(1500, 3000), 1)
end

function mob28066_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28066_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28066_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28066, 1, 'mob28066_Action')
RegisterUnitEvent(28066, 2, 'mob28066_Leave')
RegisterUnitEvent(28066, 3, 'mob28066_Kill')
RegisterUnitEvent(28066, 4, 'mob28066_Die')
